package com.hk.aefz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hk.aefz.po.Essay;
import com.hk.aefz.vo.PageResult;
import com.hk.aefz.vo.PublishBlog;
import com.hk.aefz.vo.ResultMsg;

/**
 * <p>
 * 文章表 服务类
 * </p>
 *
 * @author 阿尔法哲
 * @since 2020-07-21
 */
public interface EssayService extends IService<Essay> {

    ResultMsg saveBlog(PublishBlog publishBlog);

    PageResult<Essay> selectList(Integer page, Integer size, int dedid);

    ResultMsg delEssay(Integer eid, Integer dedid);

    PageResult<Essay> selectOpenList(Integer page, Integer size, Integer status);

    PageResult<Essay> selectBlog(Integer cid,Integer page,Integer size);

    PageResult<Essay> selectById(Integer eid);
}
